Calculation of postoperative opioid consumption